#coding=utf-8
import numpy as np
m = np.matrix([[1, -2, 3], [0, 4, 5], [7, 8, -9]])
print(m)

# 转置
print(m.T)

print(m.I)
# 矩阵乘法
v = np.matrix([[2], [3], [4]])
print(v)
print(m * v)

import numpy.linalg
print(numpy.linalg.det(m))
# 特征值
print(numpy.linalg.eigvals(m))

# 结线性方程组 mx = v
x = numpy.linalg.solve(m, v)
print(x)

print(m * x)